home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
tjgold.zip
/
INSTALL.003
/
DEMCALC4.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-29
|
2KB
|
64 lines
{--------------------------------------------------------------------------}
{ Product: TechnoJock's Turbo Toolkit GOLD }
{ }
{ TTT GOLD - DEMO PROGRAM }
{ }
{ Copyright 1986-1995 TechnoJock Software, Inc. }
{ All Rights Reserved }
{ Restricted by License }
{--------------------------------------------------------------------------}
{Description: DEMCALC4.PAS
Customizing the calculator display colors.
}
program DemCalc4;
uses CRT, DOS, GoldMisc, GoldAttr, GoldCalc, GoldFast, GoldKey, GoldTint,
GoldStr, GoldWin;
var Answer: real;
procedure SetScreen;
{Paints the background}
begin
Clear(WhiteonBlue,' ');
ClearLine(1,BlackOnRed);
ClearLine(2,BlackOnRed);
WriteAT(1,3,BlueOnRed,replicate(80,'▄'));
WriteAT(68,3,WhiteOnBlack,' TTT Gold! ');
ClearLine(25,LightgrayOnRed);
WriteCenter(25,0,'Press ESC to finish...');
end; {SetScreen}
procedure CustomizeColors;
{}
begin
GoldSetColor(CalcBorder,WhiteOnMagenta);
GoldSetColor(CalcBody,WhiteOnMagenta);
GoldSetColor(CalcIcons,GreenOnMagenta);
GoldSetColor(CalcTitle,YellowOnMagenta);
GoldSetColor(CalcInput,BlackOnLightgray);
GoldSetColor(CalcOperand,LightgrayOnMagenta);
GoldSetColor(CalcTape,GreenOnMagenta);
GoldSetColor(CalcButtons,WhiteOnGreen);
end; { CustomizeColors }
begin { main }
{$IFOPT D+}
HeapRecord;
{$ENDIF}
SetScreen;
CustomizeColors;
CursorOff;
MouseShow(true);
Answer := RunCalculator(' Ugly Calculator ');
if LastCalcError <> 0 then
PromptOK(' Error ','Not enough memory to display calculator');
ResetStartupMode;
writeln(Answer:10:2);
{$IFOPT D+}
HeapCheck;
{$ENDIF}
end.